package test1;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.nio.Buffer;
import java.util.*;
public class test {
    public static void main(String[] args)throws Exception{
        /*ArrayList a1=new ArrayList();
        Clerk c1=new Clerk("松江",30,1000);
        Clerk c2=new Clerk("无用",30,2000);
        a1.add(c1);
        a1.add(c2);
        Clerk temp=(Clerk)a1.get(0);
        System.out.println(temp.getAge()+temp.getName());*/
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        EmpManage em=new EmpManage();
        while (true){
            System.out.println("1:添加一个雇员");
            System.out.println("2:查找一个雇员");
            System.out.println("3:修改一个雇员");
            System.out.println("4.删除一个雇员");
            String operType=br.readLine();
            if(operType.equals("1")){
                System.out.println("编号");
                String No=br.readLine();
                System.out.println("名字");
                String name=br.readLine();
                System.out.println("工资");
                float sal=Float.parseFloat(br.readLine());
                Employee emp=new Employee(No,name,sal);
                em.addEmployee(emp);

            }else if(operType.equals("2")) {
                System.out.println("编号");
                String No=br.readLine();
                em.showInfo(No);

            }else if(operType.equals("3")){

            }else if(operType.equals("4")){

            }
        }
    }
}
